<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>订单日志</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
<#include "../user/common/include.ftl">
<#include "../template/include/assign.ftl">
<#include "../template/include/source.ftl">
<#include "../template/template_listPage.ftl">
    <link href="${web_static}/admin/css/list.css" rel="stylesheet" type="text/css"/>
    <style type="text/css">
        .page {
            float: right;
            padding-top: 15px;
            margin-right: 15px;
        }
    </style>
    <script type="text/javascript">
        function chk_dl(id) {
            var result = confirm("确定要删除这条订单？")
            if (result) {
                var url = "${web_base}/game/order_log_info!delete.htm?id=" + id;
                document.forms[0].action = url;
                document.forms[0].submit();
            }
        }
        $(document).ready(function () {
            if ($.browser.msie && $.browser.version == "6.0") {
                setTimeout(function () {
                    $('#status').val('<#if orderLogInfoQuery??>${(orderLogInfoQuery.status)!}</#if>');
                }, 1);
            } else {
                $('#status').val('<#if orderLogInfoQuery??>${(orderLogInfoQuery.status)!}</#if>');
            }
        <#if actionErrors??&&(actionErrors?size > 0)>
            $.dialog({type:"warn", content:"<#list errorMessages as list>${list}<br></#list>",
                modal:true, autoCloseTime:3000});
        </#if>
        });
    </script>
</head>
<body class="list">
<div class="body">
    <div class="listBar">
        <h1><span class="icon">&nbsp;</span>订单日志&nbsp;<span class="pageInfo"></span></h1>
    </div>
<@pageList page=(page!) id="listForm" action="${web_base}/game/order_log_info!list.htm" query="orderLogInfoQuery" isEmpty=true>
    <div class="operateBar">

        <label>查找:</label>
        手拉手订单编号：<input type="text" name="orderLogInfoQuery.orderId"
                       value="<#if orderLogInfoQuery??>${(orderLogInfoQuery.orderId)!}</#if>"
                       onkeyup="this.value=this.value.replace(/\D/g,'')"
                       onafterpaste="this.value=this.value.replace(/\D/g,'')"/>
        订单状态：<select class="" name="orderLogInfoQuery.status" id="status">
        <option value="">-请选择-</option>
        <option value="0">失败</option>
        <option value="1">成功</option>
        <option value="2">处理中</option>
        <option value="3">存疑</option>
    </select>
    <#-- 订单生成时间： <input type="text" name="orderLogInfoQuery.createOrderTimeStart" onclick="WdatePicker()"
           value="${(orderLogInfoQuery.createOrderTimeStart)!}" class="Wdate"> --
<input type="text" name="orderLogInfoQuery.createOrderTimeEnd" onclick="WdatePicker()"
   value="${(orderLogInfoQuery.createOrderTimeEnd)!}" class="Wdate">-->
        <input type="submit" id="searchButton" class="searchButton" value=""/>
    </div>
    <table class="listTable">
        <tr>
            <th>
                <span class="sort" name="orderId">手拉手订单号</span>
            </th>
            <th>
                <span class="sort" name="createOrderTime">手拉手订单生成时间</span>
            </th>
            <th>
                <span class="sort" name="merchantOrderId">下游用户订单</span>
            </th>
            <th>
                <span class="sort" name="supOrderId">上游供应商订单</span>
            </th>
            <th>
                <span class="sort" name="status">订单状态</span>
            </th>
            <th>
                <span class="sort" name="modifyTime">记录更新时间</span>
            </th>
            <th width="80">操&nbsp;作
            <th/>
        </tr>

        <#if page?? && page.list?? && (page.list?size gt 0)>
            <#list page.list as obj>
                <tr>
                    <td style="display: none;">
                    ${(obj.id)!}
                    </td>
                    <td>
                    ${(obj.orderId)!}
                    </td>
                    <td>
                    ${(obj.createOrderTime)!}
                    </td>
                    <td>
                    ${(obj.merchantOrderId)!}
                    </td>
                    <td>
                    ${(obj.supOrderId)!}
                    </td>
                    <td>
                        <#if  obj.status?? && obj.status == "0">
                            失败
                        <#elseif  obj.status?? && obj.status == "1">
                            成功
                        <#elseif  obj.status?? && obj.status == "2">
                            处理中
                        <#elseif  obj.status?? && obj.status == "3">
                            存疑
                        </#if>
                    </td>
                    <td>
                    ${(obj.modifyTime)!}
                    </td>

                    <td width="80">
                        <a href="${web_base}/game/order_log_info!detail.htm?Id=${(obj.id)!}" title="详情">[详情]</a>
                    <#--  <a href="javascript:void(0)" onclick="chk_dl('${(obj.id)!}')" title="删除">[删除]</a>-->
                    </td>
                </tr>
            </#list>
        </#if>
    </table>

    <#if page?? && page.list?? && (page.list?size <= 0)>
        <div class="noRecord">
            没有找到任何记录!
        </div>
    </#if>
</@pageList>
</div>

</body>
</html>